package com.lebang.model.enums.buss;

/**
 * @Author: hwq
 * @Date: 2019/6/4 17:03
 * @Version 1.0
 */

public enum  RecordStatus {
    /**
     * 任务操作状态
     */
    HAS_RECORD(false, "该设备已经完成过这个任务"),
    SUCCESS(true, "成功"),
    PULL_SUCCESS(true, "报名成功!请根据任务步骤提交任务"),
    PUSH_SUCCESS(true, "已提交审核，请等待审核!"),
    REDO_SUCCESS(true, "重做成功"),
    CALL_SUCCESS(true, "恭喜完成任务！奖励已发放"),
    FAIL(false, "操作失败"),
    EMPTY(false, "任务不存在"),
    CALL_FAIL(false, "催审失败!该任务以催审!"),
    REDO_FAIL(false, "该任务已经重做过一次!"),
    OUT_OF_STOCK(false, "亲，今天没有任务了，明儿起早哈!"),
    EXIST(false, "已领取过该任务!"),
    COMMENT_EXIST(false, "该评论已被领取，请返回列表刷新后领取!"),
    ERROR(false, "未知错误"),
    COMMENT_EXPIRE(false, "亲，该评论过期，请刷新后领取!"),
    BUSY(false, "操作频繁!"),
    NO_ZFB(false, "您不是支付宝新用户!"),
    EXIT(false, "你有任务待完成哦!请先完成", null),
    COMMENT_HAS_NO(false, "今天评论已经被领完咯!明天再来", null),
    RESULT_ERROR(false, "用户提交内容格式错误", null),
    CHECK_SUCCESS(false, "任务成功!"),
    REDO_MAX(false,"重做已达最大次数!"),
    PHONE_EXIST(false,"该手机号已领取过此任务!");




    RecordStatus(boolean status, String msg, Object obj) {
        this.status = status;
        this.msg = msg;
        this.object = obj;
    }
    RecordStatus(boolean status, String msg) {
        this.status = status;
        this.msg = msg;
        this.object = null;
    }
    private boolean status;
    private String msg;
    private Object object;

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }}


